<template>
  <div id="feature">
    <a href="javascript:void(0)" ref="recommendA">
      <img src="~assets/images/home/recommend_bg.jpg" @click="featureClick" alt="">
    </a>
  </div>
</template>

<script>
  export default {
    name: "FeatureView",
    methods: {
      featureClick(){
        console.log(this.$refs.recommendA.href);
      }
    },
    mounted() {
      this.$refs.recommendA.href = this.$route.path;
    }
  }
</script>

<style scoped>
  #feature {
    background-color: white;
    margin-top: 10px;
  }
  #feature a img{
    width: 100%;
  }
</style>